]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: clean up spacing
authorRay Strode <rstrode@redhat.com>
Tue, 11 Oct 2011 17:34:04 +0000 (13:34 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 11 Oct 2011 21:27:42 +0000 (17:27 -0400)
There's a lot of dead vertical space right now from
the session list, even if there are no sessions.

This commit mops that up.

https://bugzilla.gnome.org/show_bug.cgi?id=661479

data/theme/gdm.css
js/gdm/loginDialog.js

index c77884be4dea7a1d0a8cd18b107e50d27c26b12d..83a09c1f7264a598af1b95c15c4f7faf5c13fa16 100644 (file)
@@ -99,7 +99,7 @@
 }
 
 .login-dialog-prompt-layout {
-    padding-bottom: 64px;
+    padding-bottom: 32px;
 }
 .login-dialog-prompt-label {
     color: white;
index 3db76dee4d61c96d233895bc241f219cca4af655..5420217abdd532cd633242daa984cd570edd648c 100644 (file)
@@ -694,10 +694,13 @@ SessionList.prototype = {
         let ids = GdmGreeter.get_session_ids();
         ids.sort();
 
-        if (ids.length <= 1)
+        if (ids.length <= 1) {
             this._box.hide();
-        else
+            this._button.hide();
+        } else {
+            this._button.show();
             this._box.show();
+        }
 
         for (let i = 0; i < ids.length; i++) {
             let [sessionName, sessionDescription] = GdmGreeter.get_session_name_and_description(ids[i]);